package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@TableName("school_scores")
public class SchoolScoresEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    @NotNull(message = "学校名称不能为空")
    private String schoolName;

    @NotNull(message = "年份不能为空")
    private Integer year;

    @NotNull(message = "分数不能为空")
    private Integer score;

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }
}
